import request from "@/utils/request";
import { anyObjModel } from "./category";


export default {
  getOrderDetail() {
    return request.get<any,anyObjModel>(`/api/order/auth/trade`)
  },
  submitOrder(params:anyObjModel){
    return request.post<any,anyObjModel | number>(`/api/order/auth/submitOrder?tradeNo=${params.tradeNo}`,params)
  },
  payment(orderId:number){
    return request.get<any, anyObjModel>(`/api/payment/weixin/createNative/${orderId}`)
  },
  // /api/payment/weixin/queryPayStatus/{orderId}
  queryPayStatus(orderId:number){
    return request.get<any, anyObjModel>(`/api/payment/weixin/queryPayStatus/${orderId}`)
  }
}